import http from '@/service/http'
import type * as T from '@/types/api/index'
const dyFormApi: T.IDyForm = {
  list(data) {
    return http.get('/admin/DyFormList/list', data)
  },
  detail(id) {
    return http.post('/admin/DyFormList/detail', {
      id
    })
  },
  add(data) {
    return http.post('/admin/DyFormList/add', data)
  },
  edit(data) {
    return http.post('/admin/DyFormList/edit', data)
  },
  dels(data) {
    return http.post('/admin/DyFormList/dels', data)
  }
}

export default dyFormApi
